3.7.27 \(\int \frac {\sqrt {f+g x} \sqrt {a+c x^2}}{(d+e x)^2} \, dx\) [627]

Optimal. Leaf size=650 \[ -\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}-\frac {3 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {3 \sqrt {-a} \sqrt {c} f \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\sqrt {-a} \sqrt {c} (2 e f-3 d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^3 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\left (a e^2 g-c d (2 e f-3 d g)\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac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/e^3/(e+d*c^(1/2)/(-a)^(1/2))/(g*x+f)^(1/2)/
(c*x^2+a)^(1/2)

________________________________________________________________________________________

Rubi [A]
time = 1.08, antiderivative size = 650, normalized size of antiderivative = 1.00, number of steps used = 14, number of rules used = 10, integrand size = 28, \(\frac {\text {number of rules}}{\text {integrand size}}\) = 0.357, Rules used = {931, 6874, 733, 430, 858, 435, 947, 174, 552, 551} \begin {gather*} -\frac {\sqrt {-a} \sqrt {c} \sqrt {\frac {c x^2}{a}+1} (2 e f-3 d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}} F\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^3 \sqrt {a+c x^2} \sqrt {f+g x}}-\frac {\sqrt {\frac {c x^2}{a}+1} \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}} \left (a e^2 g-c d (2 e f-3 d g)\right ) \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {-a} g}{\sqrt {c} f+\sqrt {-a} g}\right )}{e^3 \sqrt {a+c x^2} \sqrt {f+g x} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e\right )}+\frac {3 \sqrt {-a} \sqrt {c} f \sqrt {\frac {c x^2}{a}+1} \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}} F\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {a+c x^2} \sqrt {f+g x}}-\frac {3 \sqrt {-a} \sqrt {c} \sqrt {\frac {c x^2}{a}+1} \sqrt {f+g x} E\left (\text {ArcSin}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {a+c x^2} \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {-a} g+\sqrt {c} f}}}-\frac {\sqrt {a+c x^2} \sqrt {f+g x}}{e (d+e x)} \end {gather*}

Antiderivative was successfully verified.

[In]

Int[(Sqrt[f + g*x]*Sqrt[a + c*x^2])/(d + e*x)^2,x]

[Out]

-((Sqrt[f + g*x]*Sqrt[a + c*x^2])/(e*(d + e*x))) - (3*Sqrt[-a]*Sqrt[c]*Sqrt[f + g*x]*Sqrt[1 + (c*x^2)/a]*Ellip
ticE[ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]], (-2*a*g)/(Sqrt[-a]*Sqrt[c]*f - a*g)])/(e^2*Sqrt[(Sqrt[c]*
(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[a + c*x^2]) + (3*Sqrt[-a]*Sqrt[c]*f*Sqrt[(Sqrt[c]*(f + g*x))/(Sqrt[c
]*f + Sqrt[-a]*g)]*Sqrt[1 + (c*x^2)/a]*EllipticF[ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]], (-2*a*g)/(Sqr
t[-a]*Sqrt[c]*f - a*g)])/(e^2*Sqrt[f + g*x]*Sqrt[a + c*x^2]) - (Sqrt[-a]*Sqrt[c]*(2*e*f - 3*d*g)*Sqrt[(Sqrt[c]
*(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[1 + (c*x^2)/a]*EllipticF[ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt
[2]], (-2*a*g)/(Sqrt[-a]*Sqrt[c]*f - a*g)])/(e^3*Sqrt[f + g*x]*Sqrt[a + c*x^2]) - ((a*e^2*g - c*d*(2*e*f - 3*d
*g))*Sqrt[(Sqrt[c]*(f + g*x))/(Sqrt[c]*f + Sqrt[-a]*g)]*Sqrt[1 + (c*x^2)/a]*EllipticPi[(2*e)/((Sqrt[c]*d)/Sqrt
[-a] + e), ArcSin[Sqrt[1 - (Sqrt[c]*x)/Sqrt[-a]]/Sqrt[2]], (2*Sqrt[-a]*g)/(Sqrt[c]*f + Sqrt[-a]*g)])/(e^3*((Sq
rt[c]*d)/Sqrt[-a] + e)*Sqrt[f + g*x]*Sqrt[a + c*x^2])

Rule 174

Int[1/(((a_.) + (b_.)*(x_))*Sqrt[(c_.) + (d_.)*(x_)]*Sqrt[(e_.) + (f_.)*(x_)]*Sqrt[(g_.) + (h_.)*(x_)]), x_Sym
bol] :> Dist[-2, Subst[Int[1/(Simp[b*c - a*d - b*x^2, x]*Sqrt[Simp[(d*e - c*f)/d + f*(x^2/d), x]]*Sqrt[Simp[(d
*g - c*h)/d + h*(x^2/d), x]]), x], x, Sqrt[c + d*x]], x] /; FreeQ[{a, b, c, d, e, f, g, h}, x] && GtQ[(d*e - c
*f)/d, 0]

Rule 430

Int[1/(Sqrt[(a_) + (b_.)*(x_)^2]*Sqrt[(c_) + (d_.)*(x_)^2]), x_Symbol] :> Simp[(1/(Sqrt[a]*Sqrt[c]*Rt[-d/c, 2]
))*EllipticF[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && Gt
Q[a, 0] &&  !(NegQ[b/a] && SimplerSqrtQ[-b/a, -d/c])

Rule 435

Int[Sqrt[(a_) + (b_.)*(x_)^2]/Sqrt[(c_) + (d_.)*(x_)^2], x_Symbol] :> Simp[(Sqrt[a]/(Sqrt[c]*Rt[-d/c, 2]))*Ell
ipticE[ArcSin[Rt[-d/c, 2]*x], b*(c/(a*d))], x] /; FreeQ[{a, b, c, d}, x] && NegQ[d/c] && GtQ[c, 0] && GtQ[a, 0
]

Rule 551

Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x_)^2]), x_Symbol] :> Simp[(1/(a*Sqr
t[c]*Sqrt[e]*Rt[-d/c, 2]))*EllipticPi[b*(c/(a*d)), ArcSin[Rt[-d/c, 2]*x], c*(f/(d*e))], x] /; FreeQ[{a, b, c,
d, e, f}, x] &&  !GtQ[d/c, 0] && GtQ[c, 0] && GtQ[e, 0] &&  !( !GtQ[f/e, 0] && SimplerSqrtQ[-f/e, -d/c])

Rule 552

Int[1/(((a_) + (b_.)*(x_)^2)*Sqrt[(c_) + (d_.)*(x_)^2]*Sqrt[(e_) + (f_.)*(x_)^2]), x_Symbol] :> Dist[Sqrt[1 +
(d/c)*x^2]/Sqrt[c + d*x^2], Int[1/((a + b*x^2)*Sqrt[1 + (d/c)*x^2]*Sqrt[e + f*x^2]), x], x] /; FreeQ[{a, b, c,
 d, e, f}, x] &&  !GtQ[c, 0]

Rule 733

Int[((d_) + (e_.)*(x_))^(m_)/Sqrt[(a_) + (c_.)*(x_)^2], x_Symbol] :> Dist[2*a*Rt[-c/a, 2]*(d + e*x)^m*(Sqrt[1
+ c*(x^2/a)]/(c*Sqrt[a + c*x^2]*(c*((d + e*x)/(c*d - a*e*Rt[-c/a, 2])))^m)), Subst[Int[(1 + 2*a*e*Rt[-c/a, 2]*
(x^2/(c*d - a*e*Rt[-c/a, 2])))^m/Sqrt[1 - x^2], x], x, Sqrt[(1 - Rt[-c/a, 2]*x)/2]], x] /; FreeQ[{a, c, d, e},
 x] && NeQ[c*d^2 + a*e^2, 0] && EqQ[m^2, 1/4]

Rule 858

Int[((d_.) + (e_.)*(x_))^(m_)*((f_.) + (g_.)*(x_))*((a_) + (c_.)*(x_)^2)^(p_.), x_Symbol] :> Dist[g/e, Int[(d
+ e*x)^(m + 1)*(a + c*x^2)^p, x], x] + Dist[(e*f - d*g)/e, Int[(d + e*x)^m*(a + c*x^2)^p, x], x] /; FreeQ[{a,
c, d, e, f, g, m, p}, x] && NeQ[c*d^2 + a*e^2, 0] &&  !IGtQ[m, 0]

Rule 931

Int[((d_.) + (e_.)*(x_))^(m_.)*Sqrt[(f_.) + (g_.)*(x_)]*Sqrt[(a_) + (c_.)*(x_)^2], x_Symbol] :> Simp[(d + e*x)
^(m + 1)*Sqrt[f + g*x]*(Sqrt[a + c*x^2]/(e*(m + 1))), x] - Dist[1/(2*e*(m + 1)), Int[((d + e*x)^(m + 1)/(Sqrt[
f + g*x]*Sqrt[a + c*x^2]))*Simp[a*g + 2*c*f*x + 3*c*g*x^2, x], x], x] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e
*f - d*g, 0] && NeQ[c*d^2 + a*e^2, 0] && IntegerQ[2*m] && LtQ[m, -1]

Rule 947

Int[1/(((d_.) + (e_.)*(x_))*Sqrt[(f_.) + (g_.)*(x_)]*Sqrt[(a_) + (c_.)*(x_)^2]), x_Symbol] :> With[{q = Rt[-c/
a, 2]}, Dist[Sqrt[1 + c*(x^2/a)]/Sqrt[a + c*x^2], Int[1/((d + e*x)*Sqrt[f + g*x]*Sqrt[1 - q*x]*Sqrt[1 + q*x]),
 x], x]] /; FreeQ[{a, c, d, e, f, g}, x] && NeQ[e*f - d*g, 0] && NeQ[c*d^2 + a*e^2, 0] &&  !GtQ[a, 0]

Rule 6874

Int[u_, x_Symbol] :> With[{v = ExpandIntegrand[u, x]}, Int[v, x] /; SumQ[v]]

Rubi steps

\begin {align*} \int \frac {\sqrt {f+g x} \sqrt {a+c x^2}}{(d+e x)^2} \, dx &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}+\frac {\int \frac {a g+2 c f x+3 c g x^2}{(d+e x) \sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{2 e}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}+\frac {\int \left (\frac {c (2 e f-3 d g)}{e^2 \sqrt {f+g x} \sqrt {a+c x^2}}+\frac {3 c g x}{e \sqrt {f+g x} \sqrt {a+c x^2}}+\frac {a e^2 g-c d (2 e f-3 d g)}{e^2 (d+e x) \sqrt {f+g x} \sqrt {a+c x^2}}\right ) \, dx}{2 e}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}+\frac {(3 c g) \int \frac {x}{\sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{2 e^2}+\frac {(c (2 e f-3 d g)) \int \frac {1}{\sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{2 e^3}+\frac {\left (a e^2 g-c d (2 e f-3 d g)\right ) \int \frac {1}{(d+e x) \sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{2 e^3}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}+\frac {(3 c) \int \frac {\sqrt {f+g x}}{\sqrt {a+c x^2}} \, dx}{2 e^2}-\frac {(3 c f) \int \frac {1}{\sqrt {f+g x} \sqrt {a+c x^2}} \, dx}{2 e^2}+\frac {\left (\left (a e^2 g-c d (2 e f-3 d g)\right ) \sqrt {1+\frac {c x^2}{a}}\right ) \int \frac {1}{\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}} \sqrt {1+\frac {\sqrt {c} x}{\sqrt {-a}}} (d+e x) \sqrt {f+g x}} \, dx}{2 e^3 \sqrt {a+c x^2}}+\frac {\left (a \sqrt {c} (2 e f-3 d g) \sqrt {\frac {c (f+g x)}{c f-\frac {a \sqrt {c} g}{\sqrt {-a}}}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 a \sqrt {c} g x^2}{\sqrt {-a} \left (c f-\frac {a \sqrt {c} g}{\sqrt {-a}}\right )}}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{\sqrt {-a} e^3 \sqrt {f+g x} \sqrt {a+c x^2}}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}-\frac {\sqrt {-a} \sqrt {c} (2 e f-3 d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^3 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\left (\left (a e^2 g-c d (2 e f-3 d g)\right ) \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-x^2} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e-e x^2\right ) \sqrt {f+\frac {\sqrt {-a} g}{\sqrt {c}}-\frac {\sqrt {-a} g x^2}{\sqrt {c}}}} \, dx,x,\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}\right )}{e^3 \sqrt {a+c x^2}}+\frac {\left (3 a \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {\sqrt {1+\frac {2 a \sqrt {c} g x^2}{\sqrt {-a} \left (c f-\frac {a \sqrt {c} g}{\sqrt {-a}}\right )}}}{\sqrt {1-x^2}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{\sqrt {-a} e^2 \sqrt {\frac {c (f+g x)}{c f-\frac {a \sqrt {c} g}{\sqrt {-a}}}} \sqrt {a+c x^2}}-\frac {\left (3 a \sqrt {c} f \sqrt {\frac {c (f+g x)}{c f-\frac {a \sqrt {c} g}{\sqrt {-a}}}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {1-x^2} \sqrt {1+\frac {2 a \sqrt {c} g x^2}{\sqrt {-a} \left (c f-\frac {a \sqrt {c} g}{\sqrt {-a}}\right )}}} \, dx,x,\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )}{\sqrt {-a} e^2 \sqrt {f+g x} \sqrt {a+c x^2}}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}-\frac {3 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {3 \sqrt {-a} \sqrt {c} f \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\sqrt {-a} \sqrt {c} (2 e f-3 d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^3 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\left (\left (a e^2 g-c d (2 e f-3 d g)\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}}\right ) \text {Subst}\left (\int \frac {1}{\sqrt {2-x^2} \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e-e x^2\right ) \sqrt {1-\frac {\sqrt {-a} g x^2}{\sqrt {c} \left (f+\frac {\sqrt {-a} g}{\sqrt {c}}\right )}}} \, dx,x,\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}\right )}{e^3 \sqrt {f+g x} \sqrt {a+c x^2}}\\ &=-\frac {\sqrt {f+g x} \sqrt {a+c x^2}}{e (d+e x)}-\frac {3 \sqrt {-a} \sqrt {c} \sqrt {f+g x} \sqrt {1+\frac {c x^2}{a}} E\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {a+c x^2}}+\frac {3 \sqrt {-a} \sqrt {c} f \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^2 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\sqrt {-a} \sqrt {c} (2 e f-3 d g) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} F\left (\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|-\frac {2 a g}{\sqrt {-a} \sqrt {c} f-a g}\right )}{e^3 \sqrt {f+g x} \sqrt {a+c x^2}}-\frac {\left (a e^2 g-c d (2 e f-3 d g)\right ) \sqrt {\frac {\sqrt {c} (f+g x)}{\sqrt {c} f+\sqrt {-a} g}} \sqrt {1+\frac {c x^2}{a}} \Pi \left (\frac {2 e}{\frac {\sqrt {c} d}{\sqrt {-a}}+e};\sin ^{-1}\left (\frac {\sqrt {1-\frac {\sqrt {c} x}{\sqrt {-a}}}}{\sqrt {2}}\right )|\frac {2 \sqrt {-a} g}{\sqrt {c} f+\sqrt {-a} g}\right )}{e^3 \left (\frac {\sqrt {c} d}{\sqrt {-a}}+e\right ) \sqrt {f+g x} \sqrt {a+c x^2}}\\ \end {align*}

________________________________________________________________________________________

Mathematica [C] Result contains complex when optimal does not.
time = 24.78, size = 1331, normalized size = 2.05 \begin {gather*} \frac {\sqrt {f+g x} \left (-\frac {e^2 \left (a+c x^2\right )}{d+e x}-\frac {-3 c e^2 f^3 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+3 c d e f^2 g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}-3 a e^2 f g^2 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+3 a d e g^3 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}+6 c e^2 f^2 \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)-6 c d e f g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)-3 c e^2 f \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)^2+3 c d e g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (f+g x)^2+3 \sqrt {c} e \left (-i \sqrt {c} f+\sqrt {a} g\right ) (-e f+d g) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} E\left (i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )+e \left (\sqrt {c} f+i \sqrt {a} g\right ) \left (\sqrt {a} e g-i \sqrt {c} (2 e f-3 d g)\right ) \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} F\left (i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )+2 i c d e f g \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} \Pi \left (\frac {\sqrt {c} (e f-d g)}{e \left (\sqrt {c} f+i \sqrt {a} g\right )};i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )-3 i c d^2 g^2 \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} \Pi \left (\frac {\sqrt {c} (e f-d g)}{e \left (\sqrt {c} f+i \sqrt {a} g\right )};i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )-i a e^2 g^2 \sqrt {\frac {g \left (\frac {i \sqrt {a}}{\sqrt {c}}+x\right )}{f+g x}} \sqrt {-\frac {\frac {i \sqrt {a} g}{\sqrt {c}}-g x}{f+g x}} (f+g x)^{3/2} \Pi \left (\frac {\sqrt {c} (e f-d g)}{e \left (\sqrt {c} f+i \sqrt {a} g\right )};i \sinh ^{-1}\left (\frac {\sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}}}{\sqrt {f+g x}}\right )|\frac {\sqrt {c} f-i \sqrt {a} g}{\sqrt {c} f+i \sqrt {a} g}\right )}{g \sqrt {-f-\frac {i \sqrt {a} g}{\sqrt {c}}} (e f-d g) (f+g x)}\right )}{e^3 \sqrt {a+c x^2}} \end {gather*}

Antiderivative was successfully verified.

[In]

Integrate[(Sqrt[f + g*x]*Sqrt[a + c*x^2])/(d + e*x)^2,x]

[Out]

(Sqrt[f + g*x]*(-((e^2*(a + c*x^2))/(d + e*x)) - (-3*c*e^2*f^3*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] + 3*c*d*e*f^2*
g*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] - 3*a*e^2*f*g^2*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]] + 3*a*d*e*g^3*Sqrt[-f - (I
*Sqrt[a]*g)/Sqrt[c]] + 6*c*e^2*f^2*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(f + g*x) - 6*c*d*e*f*g*Sqrt[-f - (I*Sqrt[
a]*g)/Sqrt[c]]*(f + g*x) - 3*c*e^2*f*Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(f + g*x)^2 + 3*c*d*e*g*Sqrt[-f - (I*Sqr
t[a]*g)/Sqrt[c]]*(f + g*x)^2 + 3*Sqrt[c]*e*((-I)*Sqrt[c]*f + Sqrt[a]*g)*(-(e*f) + d*g)*Sqrt[(g*((I*Sqrt[a])/Sq
rt[c] + x))/(f + g*x)]*Sqrt[-(((I*Sqrt[a]*g)/Sqrt[c] - g*x)/(f + g*x))]*(f + g*x)^(3/2)*EllipticE[I*ArcSinh[Sq
rt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)] + e*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*g)), I*ArcS
inh[Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]/Sqrt[f + g*x]], (Sqrt[c]*f - I*Sqrt[a]*g)/(Sqrt[c]*f + I*Sqrt[a]*g)])/(g*
Sqrt[-f - (I*Sqrt[a]*g)/Sqrt[c]]*(e*f - d*g)*(f + g*x))))/(e^3*Sqrt[a + c*x^2])

________________________________________________________________________________________

Maple [B] Leaf count of result is larger than twice the leaf count of optimal. \(6043\) vs. \(2(531)=1062\).
time = 0.10, size = 6044, normalized size = 9.30

method result size
elliptic \(\frac {\sqrt {\left (g x +f \right ) \left (c \,x^{2}+a \right )}\, \left (-\frac {\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}}{e \left (e x +d \right )}+\frac {2 \left (-\frac {c \left (2 d g -e f \right )}{e^{3}}+\frac {c d g}{2 e^{3}}\right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \EllipticF \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{\sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}}+\frac {3 c g \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \left (\left (-\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \EllipticE \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )+\frac {\sqrt {-a c}\, \EllipticF \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{c}\right )}{e^{2} \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}}+\frac {\left (a \,e^{2} g +3 c \,d^{2} g -2 c d e f \right ) \left (\frac {f}{g}-\frac {\sqrt {-a c}}{c}\right ) \sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x -\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\, \sqrt {\frac {x +\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}}\, \EllipticPi \left (\sqrt {\frac {x +\frac {f}{g}}{\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}, \frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}+\frac {d}{e}}, \sqrt {\frac {-\frac {f}{g}+\frac {\sqrt {-a c}}{c}}{-\frac {f}{g}-\frac {\sqrt {-a c}}{c}}}\right )}{e^{4} \sqrt {c g \,x^{3}+c f \,x^{2}+a g x +f a}\, \left (-\frac {f}{g}+\frac {d}{e}\right )}\right )}{\sqrt {g x +f}\, \sqrt {c \,x^{2}+a}}\) \(895\)
default \(\text {Expression too large to display}\) \(6044\)

Verification of antiderivative is not currently implemented for this CAS.

[In]

int((g*x+f)^(1/2)*(c*x^2+a)^(1/2)/(e*x+d)^2,x,method=_RETURNVERBOSE)

[Out]

result too large to display

________________________________________________________________________________________

Maxima [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Failed to integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^(1/2)*(c*x^2+a)^(1/2)/(e*x+d)^2,x, algorithm="maxima")

[Out]

integrate(sqrt(c*x^2 + a)*sqrt(g*x + f)/(x*e + d)^2, x)

________________________________________________________________________________________

Fricas [F(-1)] Timed out
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {Timed out} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^(1/2)*(c*x^2+a)^(1/2)/(e*x+d)^2,x, algorithm="fricas")

[Out]

Timed out

________________________________________________________________________________________

Sympy [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \int \frac {\sqrt {a + c x^{2}} \sqrt {f + g x}}{\left (d + e x\right )^{2}}\, dx \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)**(1/2)*(c*x**2+a)**(1/2)/(e*x+d)**2,x)

[Out]

Integral(sqrt(a + c*x**2)*sqrt(f + g*x)/(d + e*x)**2, x)

________________________________________________________________________________________

Giac [F]
time = 0.00, size = 0, normalized size = 0.00 \begin {gather*} \text {could not integrate} \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

integrate((g*x+f)^(1/2)*(c*x^2+a)^(1/2)/(e*x+d)^2,x, algorithm="giac")

[Out]

integrate(sqrt(c*x^2 + a)*sqrt(g*x + f)/(x*e + d)^2, x)

________________________________________________________________________________________

Mupad [F]
time = 0.00, size = -1, normalized size = -0.00 \begin {gather*} \int \frac {\sqrt {f+g\,x}\,\sqrt {c\,x^2+a}}{{\left (d+e\,x\right )}^2} \,d x \end {gather*}

Verification of antiderivative is not currently implemented for this CAS.

[In]

int(((f + g*x)^(1/2)*(a + c*x^2)^(1/2))/(d + e*x)^2,x)

[Out]

int(((f + g*x)^(1/2)*(a + c*x^2)^(1/2))/(d + e*x)^2, x)

________________________________________________________________________________________